import request from '@/utils/request';
import {passRef, search} from "@/api/interface/interFace";
import * as url from "url";

export function getApplyInfo(query: object) {
    return request({
        url: '/jsApplication/page',
        method: 'get',
        params: query,


    });
}
export function  searchInfo(query: search){
    return request({
        url: '/jsApplication/page',
        method: 'get',
        params: query,

    });


}
export function getDetails(appId: number) {
    return request({
        url: '/jsApplication/' + appId,
        method: 'get',
    });

}

export function passAndRef(query: passRef) {
    return request({
        url: '/jsApplication',
        method: 'put',
        data: query,
    });
}
